package com.jeesite.modules.ic.entity;

import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 企业Entity
 * @author 李寒冰
 * @version 2024-08-02
 */
@Table(name="ic_company", alias="a", label="企业信息", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="name", attrName="name", label="公司名称", queryType=QueryType.LIKE),
		@Column(name="status", attrName="status", label="status", isUpdate=false),
	}, orderBy="a.id DESC"
)
public class IcCompany extends DataEntity<IcCompany> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 公司名称

	public IcCompany() {
		this(null);
	}
	
	public IcCompany(String id){
		super(id);
	}
	
	@Size(min=0, max=255, message="公司名称长度不能超过 255 个字符")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}